﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.EntityFrameworkCore;
using OL.FrameCore.Application.Role.Dto;
using OL.FrameCore.Infrastructure.Code;

namespace OL.FrameCore.Application.Role
{
    public interface IRoleService :  IAutoInject
    {
        //List<RoleDto> GetRoleList(int roleId, string roleName);
        PageData<GeRoleListResponse> GetRoleList(GetRoleListRequest request);
        GetRoleResponse GetEmptyRole();
        GetRoleResponse GetRole(int id);
        Result AddRole(AddRoleRequest request);
        Result UpdateRole(UpdateRoleRequest request);
        Result DeleteRole(int id,int opeatorId);
    }
}
